#!/bin/sh

# exec xrdb ~/.Xresources &
[[ -f ~/.Xresources ]] && xrdb -merge -I$HOME ~/.Xresources

dunst &
unclutter &
# picom -m &
picom --backend glx --vsync &
# picom &
numlockx &

# Tray
# ------------------------
# gxkb &
nm-applet &
# volctl &
volumeicon &
xbacklight -set 50
sleep 3 && sbxkb &
sleep 4 && udiskie --automount --notify --tray &

# MPD daemon start (if no other user instance exists)
# [ ! -s ~/.config/mpd/pid ] && mpd

# SSH
# ------------------------
eval $(ssh-agent) &

# Wallpaper
# ------------------------
feh --bg-scale ~/Pictures/wallpapers/13.png &
# feh --randomize --bg-scale ~/Pictures/wallpapers &

# Lang Toggle
# setxkbmap "us,ru" ",winkeys" "grp:alt_shift_toggle"
setxkbmap -layout us,ru -option grp:caps_toggle

# Run mpd if doesn't started.
[ -n "$(pidof mpd)" ] || mpd &

# VM Monitor
# -------------------------
# xrandr --output Virtual-1 --mode 1920x1080
#

# Off laptop monitor only external
# xrandr --output HDMI-1-3 --noprimary --mode 2560x1080 --output eDP-1 --off
# Two monitors
# xrandr --output "eDP-1" --auto --output "HDMI-1-3" --left-of "eDP-1"

# Start DWM
# -------------------------
# ~/.dotfiles/dwm_status &
# slstatus &
# exec dwm

#QTILE
#--------------------------
# exec qtile start

exec sxhkd &
exec bspwm





